package m1.server.config.component.componentInterface;

import m2.component.ComponentInterface;
import m2.service.ProvidedService;

public class ConnectionManagerInterfaceProvided extends ComponentInterface{

	/**
	 * 
	 */
	public ConnectionManagerInterfaceProvided(){
		
		//********externalSocketOutService********
		ProvidedService externalSocketOutService = new ProvidedService();
		externalSocketOutService.setNameService("externalSocketOutService");
		setService(externalSocketOutService);		
		
		//********securityCheckService********
		ProvidedService securityCheckService = new ProvidedService();
		securityCheckService.setNameService("securityCheckService");
		setService(securityCheckService);
		
		
		//********dbQueryService********
		ProvidedService dbQueryService = new ProvidedService();
		dbQueryService.setNameService("dbQueryService");
		setService(dbQueryService);
		
	}

	@Override
	/**
	 * 
	 */
	public void buildService() {
		serviceUsePorts("externalSocketOutService", "ExternalSocketOut");
		serviceUsePorts("securityCheckService", "SecurityCheck");
		serviceUsePorts("dbQueryService", "DBQuery");
	}
	
	
}
